package com.lct.d9_interfance;

public class Test {
	public static void main(String[] args) {
		//接口的好处:接口让一个对象可以有更多的对象
		//1.弥补了单继承的不足
		People s1 = new Student();
		Driver d = new Student();
		Doctor d2 = new Student();

		//2.面向接口开发是软件开发中流行的开发模式，更利于程序的解耦合
		Driver d3 = new Teacher();
		Driver d4 = new Student();
	}
}
